package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsPublicMechanismMapper;
import com.hckjsec.cloud.domain.AppletsPublicMechanism;
import com.hckjsec.cloud.service.IAppletsPublicMechanismService;

/**
 * 机构简介主Service业务层处理
 * 
 * @author cyt
 * @date 2021-09-03
 */
@Service
public class AppletsPublicMechanismServiceImpl implements IAppletsPublicMechanismService 
{
    @Autowired
    private AppletsPublicMechanismMapper appletsPublicMechanismMapper;

    /**
     * 查询机构简介主
     * 
     * @param mechanismId 机构简介主ID
     * @return 机构简介主
     */
    @Override
    public AppletsPublicMechanism selectAppletsPublicMechanismById(Long mechanismId)
    {
        return appletsPublicMechanismMapper.selectAppletsPublicMechanismById(mechanismId);
    }

    /**
     * 查询机构简介主列表
     * 
     * @param appletsPublicMechanism 机构简介主
     * @return 机构简介主
     */
    @Override
    public List<AppletsPublicMechanism> selectAppletsPublicMechanismList(AppletsPublicMechanism appletsPublicMechanism)
    {
        return appletsPublicMechanismMapper.selectAppletsPublicMechanismList(appletsPublicMechanism);
    }

    /**
     * 新增机构简介主
     * 
     * @param appletsPublicMechanism 机构简介主
     * @return 结果
     */
    @Override
    public int insertAppletsPublicMechanism(AppletsPublicMechanism appletsPublicMechanism)
    {
        return appletsPublicMechanismMapper.insertAppletsPublicMechanism(appletsPublicMechanism);
    }

    /**
     * 修改机构简介主
     * 
     * @param appletsPublicMechanism 机构简介主
     * @return 结果
     */
    @Override
    public int updateAppletsPublicMechanism(AppletsPublicMechanism appletsPublicMechanism)
    {
        return appletsPublicMechanismMapper.updateAppletsPublicMechanism(appletsPublicMechanism);
    }

    /**
     * 批量删除机构简介主
     * 
     * @param mechanismIds 需要删除的机构简介主ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicMechanismByIds(Long[] mechanismIds)
    {
        return appletsPublicMechanismMapper.deleteAppletsPublicMechanismByIds(mechanismIds);
    }

    /**
     * 删除机构简介主信息
     * 
     * @param mechanismId 机构简介主ID
     * @return 结果
     */
    @Override
    public int deleteAppletsPublicMechanismById(Long mechanismId)
    {
        return appletsPublicMechanismMapper.deleteAppletsPublicMechanismById(mechanismId);
    }
}
